﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FanaticRock.Core.Helpers
{
    public static class UriHelper
    {
        public static Uri GetUri(string str)
        {
            if (string.IsNullOrWhiteSpace(str)) return null;
            return new Uri(str);
        }

        public static Uri GetLocalUri(string str)
        {
            if (File.Exists(str)) return GetUri(str);
            return null;
        }
    }
}
